<template>
  <div>
    <top-nav-bar :applyPageRoute="nowRouteTitle" @back="back"></top-nav-bar>
    <a-card :body-style="{padding: '12px'}" :bordered="false">
      <a-tabs>
        <a-tab-pane key="1" tab="导入记录">
          <importFile />
        </a-tab-pane>
        <a-tab-pane key="2" tab="导出记录">
          <exportFile />
        </a-tab-pane>
      </a-tabs>
    </a-card>
  </div>
</template>

<script>
import topNavBar from '@/components/topNavBar/topNavBar'
import importFile from './importfile'
import exportFile from './exportfile'
export default {
  name: 'index',
  created() {
    this.nowRouteTitle = this.$route.meta.title
  },
  data() {
    return {
      nowRouteTitle: ''
    }
  },
  components: {
    importFile,
    exportFile,
    topNavBar
  },
  methods: {
    back() {
      this.$router.push({
        name:'Analysis'
      })
    }
  }
}
</script>

<style>
</style>